package com.example.captcha.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: hp
 * Date: 2025-01-15
 * Time: 15:50
 */
@RequestMapping("/logger")
@RestController
public class LoggerLevelController {
    private static Logger logger = LoggerFactory.getLogger(LoggerLevelController.class);

    @RequestMapping("/print")
    public String print() {
        logger.trace("trace级别的日志...");
        logger.debug("debug级别的日志...");
        logger.info("info级别的日志...");
        logger.warn("warn级别的日志...");
        logger.error("error级别的日志...");
        return "打印日志";
    }

}
